package edu.sandau.app.basic.service;

import edu.sandau.app.basic.domain.OrderDetail;
import java.util.List;

public interface OrderDetailService {
    
    /**
     * 根据订单ID获取订单详情
     */
    List<OrderDetail> getOrderDetailsByOrderId(Long orderId);
    
    /**
     * 根据ID获取订单详情
     */
    OrderDetail getOrderDetailById(Long id);
    
    /**
     * 创建订单详情
     */
    int addOrderDetail(OrderDetail orderDetail);
    
    /**
     * 批量创建订单详情
     */
    int batchAddOrderDetails(List<OrderDetail> orderDetails);
    
    /**
     * 更新订单详情
     */
    int updateOrderDetail(OrderDetail orderDetail);
    
    /**
     * 删除订单详情
     */
    int deleteOrderDetail(Long id);
    
    /**
     * 根据菜品ID获取订单详情
     */
    List<OrderDetail> getOrderDetailsByDishId(Long dishId);
}

